//客户流向分析
import request from '@/utils/request'
/**
 * 客户收入总和排名
 * @param {*} data 
 * @returns 
 */
export function getClientIncomeRank(data) {
  return request({
    url: '/network/clientGo/clientIncomeRank',
    method: 'post',
    data
  })
}

//
/**
 * 汇总客户流向明细
 * @param {*} data 
 * @returns 
 */
export function getClientGoCollect(data) {
  return request({
    url: '/network/clientGo/clientGoCollect',
    method: 'post',
    data
  })
}

//
/**
 * 目的省份收入总和排名
 * @param {*} data 
 * @returns 
 */
export function provinceIncomeRank(data) {
  return request({
    url: '/network/clientGo/provinceIncomeRank',
    method: 'post',
    data
  })
}
//
/**
 * 搜索客户流向明细
 * @param {*} data 
 * @returns 
 */
export function searchDetail(data) {
  return request({
    url: '/network/clientGo/searchDetail',
    method: 'post',
    data
  })
}
//
/**
 * 显示客户流向明细列表
 * @param {*} data 
 * @returns 
 */
export function selectDetailAll(data) {
  return request({
    url: '/network/clientGo/selectDetailAll',
    method: 'get',
    params: data
  })
}

/**
* 客户名称模糊查询
* @param {*} data 
* @returns 
*/
export function selectByName() {
  return request({
    url: '/client/selectByName',
    method: 'get'
  })
} 
